package cn.jjxx.modules.project.service.impl;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.project.entity.LocationOfCitys;
import cn.jjxx.modules.project.mapper.LocationOfCitysMapper;
import cn.jjxx.modules.project.service.ILocationOfCitysService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**   
 * @Title: 城市位置配置
 * @Description: 城市位置配置
 * @author zx
 * @date 2021-03-16 17:13:40
 * @version V1.0   
 *
 */
@Transactional
@Service("locationOfCitysService")
public class LocationOfCitysServiceImpl  extends CommonServiceImpl<LocationOfCitysMapper,LocationOfCitys> implements  ILocationOfCitysService {

	@Override
	public boolean insertBatch(List<LocationOfCitys> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<LocationOfCitys> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}
}
